﻿{template 'header',$module}
{if $action == 'email'}
{if $itemid==1}<div class="warn">Dear users, in order to ensure real and effective information, please<strong>Authenticate</strong>Your<strong>Email</strong>，After passing authentication information can be released</div>{/if}
<div class="menu">
<table cellpadding="0" cellspacing="0">
<tr>
<td class="tab_on" id="Tab0"><a href="?action={$action}"><span>1、Send certified letter</span></a></td>
<td class="tab_nav">&nbsp;</td>
<td class="tab" id="Tab1"><a href="?action={$action}"><span>2、Receive certification letter</span></a></td>
<td class="tab_nav">&nbsp;</td>
<td class="tab" id="Tab2"><a href="?action={$action}"><span>3、Certification</span></a></td>
</tr>
</table>
</div>
<form method="post" action="validate.php" onsubmit="return check();" id="dform">
<input type="hidden" name="action" value="{$action}"/>
<table cellpadding="6" cellspacing="1" class="tb">
<tr>
<td class="tl"><span class="f_red">*</span> YourEmail</td>
<td class="tr"><input type="text" size="30" name="email" id="email" value="{$user[email]}"/> <span id="demail" class="f_red"></span></td>
</tr>
<tr>
<td class="tl"><span class="f_red">*</span> Verification code</td>
<td class="tr">{template 'captcha', 'chip'} <span id="dcaptcha" class="f_red"></span></td>
</tr>
<tr>
<td class="tl">Tips</td>
<td class="tr">Submitted, the system will send a verification message to your Email, please complete authentication Receiving Mail</td>
</tr>
</tbody>
<tr>
<td class="tl">&nbsp;</td>
<td class="tr" height="30"><input type="submit" name="submit" value=" Next " class="btn"/>&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" value=" Back " class="btn" onclick="history.back(-1);"/></td>
</tr>
</table>
</form>
<script type="text/javascript">
function check() {
	if(Dd('email').value.length < 7) {
		Dmsg('Please fill inEmail', 'email');
		return false;
	}
	if(!is_captcha(Dd('captcha').value)) {
		Dmsg('Please fill in the correct verification code', 'captcha');
		return false;
	}
	return true;
}
</script>
{elseif $action == 'vemail'}
<div class="menu">
<table cellpadding="0" cellspacing="0">
<tr>
<td class="tab_on" id="Tab0"><a href="?action={$action}"><span>Mail Authentication</span></a></td>
</tr>
</table>
</div>
<table cellpadding="10" cellspacing="1" class="tb">
<tr>
<td class="tl">E-mail address</td>
<td class="tr"><strong>{$_email}</strong> <a href="send.php?action=email" class="t">[Modification]</a></td>
</tr>
<tr>
<td class="tl">Certification status</td>
<td class="tr f_green">Certified</td>
</tr>
</table>
{elseif $action == 'mobile'}
<script type="text/javascript">s('sms');</script>
{if $itemid==1}<div class="warn">Dear users, in order to ensure real and effective information, please<strong>Authenticate</strong>Your<strong>Cell Phone Number</strong>，After passing authentication information can be released</div>{/if}
<div class="menu">
<table cellpadding="0" cellspacing="0">
<tr>
<td class="tab_on" id="Tab0"><a href="?action={$action}"><span>1、Send Authentication Code</span></a></td>
<td class="tab_nav">&nbsp;</td>
<td class="tab" id="Tab1"><a href="?action={$action}&code=1"><span>2、Receive authentication code</span></a></td>
<td class="tab_nav">&nbsp;</td>
<td class="tab" id="Tab2"><a href="?action={$action}"><span>3、Validated</span></a></td>
</tr>
</table>
</div>
{if isset($code)}
<form method="post" action="validate.php" onsubmit="return check();" id="dform">
<input type="hidden" name="action" value="{$action}"/>
<table cellpadding="6" cellspacing="1" class="tb">
<tr>
<td class="tl"><span class="f_red">*</span> Authentication code</td>
<td class="tr"><input type="text" size="10" name="auth" id="auth"/> <span id="dauth" class="f_red"></span> Please enter your authentication code received by SMS</td>
<tr>
<td class="tl">&nbsp;</td>
<td class="tr" height="30"><input type="submit" value=" Next " class="btn"/>&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" value=" Retransmission " class="btn" onclick="Go('?action={$action}');"/></td>
</tr>
</table>
</form>
<script type="text/javascript">
Dd('Tab0').className = 'tab';
Dd('Tab1').className = 'tab_on';
function check() {
	if(Dd('auth').value.length < 6) {
		Dmsg('Please fill out the authentication code', 'auth');
		return false;
	}
	return true;
}
</script>
{else}
<form method="post" action="validate.php" onsubmit="return check();" id="dform">
<input type="hidden" name="action" value="{$action}"/>
<table cellpadding="6" cellspacing="1" class="tb">
<tr>
<td class="tl"><span class="f_red">*</span> Your phone number</td>
<td class="tr"><input type="text" size="30" name="mobile" id="mobile" value="{$user[mobile]}"/> <span id="dmobile" class="f_red"></span></td>
</tr>
{if $fee && $_sms<1}
<tr>
<td class="tl">Receive SMS charges</td>
<td class="tr"><span class="f_b f_red">{$fee}</span> {$DT[money_unit]}</td>
</tr>
<tr>
<td class="tl">Account Balance</td>
<td class="tr"><span class="f_b f_blue">{$_money}</span> {$DT[money_unit]} {if $fee>$_money}&nbsp;<span class="f_red">Insufficient balance</span>&nbsp;{/if} <a href="charge.php?action=pay" class="t" target="_blank">[Recharge]</a></td>
</tr>
<tr>
<td class="tl"><span class="f_red">*</span> Payment password</td>
<td class="tr">{template 'password', 'chip'} <span id="dpassword" class="f_red"></span></td>
</tr>
{/if}
<tr>
<td class="tl">Tips</td>
<td class="tr">Submitted, the system will send a text message to your phone number, please pay attention to receive</td>
</tr>
</tbody>
<tr>
<td class="tl">&nbsp;</td>
<td class="tr" height="30"><input type="submit"  name="submit" value=" Next " class="btn"/>&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" value=" Back " class="btn" onclick="history.back(-1);"/></td>
</tr>
</table>
</form>
<script type="text/javascript">
function check() {
	if(Dd('mobile').value.length < 7) {
		Dmsg('Please fill in mobile number', 'mobile');
		return false;
	}
{if $fee && $_sms<1}
	if(Dd('password').value.length < 6) {
		Dmsg('Please fill out the payment password', 'password');
		return false;
	}
{/if}
	return true;
}
</script>
{/if}
{elseif $action == 'vmobile'}
<script type="text/javascript">s('sms');</script>
<div class="menu">
<table cellpadding="0" cellspacing="0">
<tr>
<td class="tab_on" id="Tab0"><a href="?action={$action}"><span>Mobile Authentication</span></a></td>
</tr>
</table>
</div>
<table cellpadding="10" cellspacing="1" class="tb">
<tr>
<td class="tl">Cell Phone Number</td>
<td class="tr"><strong>{$user[mobile]}</strong> <a href="send.php?action=mobile" class="t">[Modification]</a></td>
</tr>
<tr>
<td class="tl">Certification status</td>
<td class="tr f_green">Certified</td>
</tr>
</table>
<script type="text/javascript">s('mobile');</script>
{elseif $action == 'truename'}
{if $itemid==1}<div class="warn">Dear users, in order to ensure real and effective information, please<strong>Authenticate</strong>Your<strong>Real Name</strong>，After passing authentication information can be released</div>{/if}
<div class="menu">
<table cellpadding="0" cellspacing="0">
<tr>
<td class="tab_on" id="Tab0"><a href="?action={$action}"><span>1、Submit documents</span></a></td>
<td class="tab_nav">&nbsp;</td>
<td class="tab" id="Tab1"><a href="?action={$action}"><span>2、Certification</span></a></td>
</tr>
</table>
</div>
<form method="post" action="validate.php" onsubmit="return check();" id="dform">
<input type="hidden" name="action" value="{$action}"/>
<table cellpadding="6" cellspacing="1" class="tb">
<tr>
<td class="tl"><span class="f_red">*</span> Real Name</td>
<td class="tr"><input type="text" size="10" name="truename" id="truename" value="{$user[truename]}"/> <span id="dtruename" class="f_red"></span></td>
</tr>
<tr>
<td class="tl"><span class="f_red">*</span> Document Image</td>
<td class="tr"><input name="thumb" id="thumb" type="text" size="60" readonly/>&nbsp;&nbsp;<a href="javascript:void(0);" onclick="Dthumb({$moduleid},0,0, Dd('thumb').value, true);" class="t">[Upload]</a>&nbsp;&nbsp;<a href="javascript:void(0);" onclick="_preview(Dd('thumb').value);" class="t">[Preview]</a>&nbsp;&nbsp;<a href="javascript:void(0);" onclick="Dd('thumb').value='';" class="t">[Delete]</a>
<span id="dthumb" class="f_red"></span>
</td>
</tr>
<tr>
<td class="tl">Document Image</td>
<td class="tr"><input name="thumb1" id="thumb1" type="text" size="60" readonly/>&nbsp;&nbsp;<a href="javascript:void(0);" onclick="Dthumb({$moduleid},0,0, Dd('thumb1').value, true, 'thumb1');" class="t">[Upload]</a>&nbsp;&nbsp;<a href="javascript:void(0);" onclick="_preview(Dd('thumb1').value);" class="t">[Preview]</a>&nbsp;&nbsp;<a href="javascript:void(0);" onclick="Dd('thumb1').value='';" class="t">[Delete]</a></td>
</tr>
<tr>
<td class="tl">Document Image</td>
<td class="tr"><input name="thumb2" id="thumb2" type="text" size="60" readonly/>&nbsp;&nbsp;<a href="javascript:void(0);" onclick="Dthumb({$moduleid},0,0, Dd('thumb2').value, true, 'thumb2');" class="t">[Upload]</a>&nbsp;&nbsp;<a href="javascript:void(0);" onclick="_preview(Dd('thumb2').value);" class="t">[Preview]</a>&nbsp;&nbsp;<a href="javascript:void(0);" onclick="Dd('thumb2').value='';" class="t">[Delete]</a></td>
</tr>
<tr>
<td class="tl">Certification Description</td>
<td class="tr lh18">
Please upload a valid personal identification (ID card or passport, etc.) electronic version of the website in order to verify the certification<br/>
The name on the certificate must be consistent with complete real name<br/>
At least need to upload a maximum of three can be uploaded
</td>
</tr>
</tbody>
<tr>
<td class="tl">&nbsp;</td>
<td class="tr" height="30"><input type="submit" name="submit" value=" Determined " class="btn"/>&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" value=" Back " class="btn" onclick="history.back(-1);"/></td>
</tr>
</table>
</form>
{load('clear.js')}
{if $MOD[vfax]}
<br/>
<table cellpadding="10" cellspacing="1" class="tb">
<tr>
<td class="tl">Fax Certification</td>
<td class="tr">
You can fax valid documents to {$MOD[vfax]} Authentication, the copy must be marked Username
</td>
</tr>
</table>
{/if}
<script type="text/javascript">
function check() {
	if(Dd('truename').value.length < 2) {
		Dmsg('Please fill out the real name', 'truename');
		return false;
	}
	if(Dd('thumb').value.length < 15) {
		Dmsg('Please upload documents, pictures', 'thumb');
		return false;
	}
	return true;
}
</script>
{elseif $action == 'vtruename'}
<div class="menu">
<table cellpadding="0" cellspacing="0">
<tr>
<td class="tab_on" id="Tab0"><a href="?action={$action}"><span>Real-name authentication</span></a></td>
</tr>
</table>
</div>
<table cellpadding="10" cellspacing="1" class="tb">
<tr>
<td class="tl">Real Name</td>
<td class="tr f_b">{$user[truename]}</td>
</tr>
{if $user[vtruename] || $v[status] == 3}
<tr>
<td class="tl">Certification status</td>
<td class="tr f_green">Certified</td>
</tr>
{else}
<tr>
<td class="tl">Certification status</td>
<td class="tr f_red">Audit</td>
</tr>
{/if}
</table>
{elseif $action == 'company'}
{if $itemid==1}<div class="warn">Dear users, in order to ensure real and effective information, please<strong>Authenticate</strong>Your<strong>Company Info</strong>，After passing authentication information can be released</div>{/if}
<div class="menu">
<table cellpadding="0" cellspacing="0">
<tr>
<td class="tab_on" id="Tab0"><a href="?action={$action}"><span>1、Submit documents</span></a></td>
<td class="tab_nav">&nbsp;</td>
<td class="tab" id="Tab1"><a href="?action={$action}"><span>2、Certification</span></a></td>
</tr>
</table>
</div>
<form method="post" action="validate.php" onsubmit="return check();" id="dform">
<input type="hidden" name="action" value="{$action}"/>
<table cellpadding="6" cellspacing="1" class="tb">
<tr>
<td class="tl"><span class="f_red">*</span> Company name</td>
<td class="tr"><input type="text" size="60" name="company" id="company" value="{$user[company]}"/> <span id="dcompany" class="f_red"></span></td>
</tr>
<tr>
<td class="tl"><span class="f_red">*</span> Document Image</td>
<td class="tr"><input name="thumb" id="thumb" type="text" size="60" readonly/>&nbsp;&nbsp;<a href="javascript:void(0);" onclick="Dthumb({$moduleid},0,0, Dd('thumb').value, true);" class="t">[Upload]</a>&nbsp;&nbsp;<a href="javascript:void(0);" onclick="_preview(Dd('thumb').value);" class="t">[Preview]</a>&nbsp;&nbsp;<a href="javascript:void(0);" onclick="Dd('thumb').value='';" class="t">[Delete]</a>
<span id="dthumb" class="f_red"></span>
</td>
</tr>
<tr>
<td class="tl">Document Image</td>
<td class="tr"><input name="thumb1" id="thumb1" type="text" size="60" readonly/>&nbsp;&nbsp;<a href="javascript:void(0);" onclick="Dthumb({$moduleid},0,0, Dd('thumb1').value, true, 'thumb1');" class="t">[Upload]</a>&nbsp;&nbsp;<a href="javascript:void(0);" onclick="_preview(Dd('thumb1').value);" class="t">[Preview]</a>&nbsp;&nbsp;<a href="javascript:void(0);" onclick="Dd('thumb1').value='';" class="t">[Delete]</a></td>
</tr>
<tr>
<td class="tl">Document Image</td>
<td class="tr"><input name="thumb2" id="thumb2" type="text" size="60" readonly/>&nbsp;&nbsp;<a href="javascript:void(0);" onclick="Dthumb({$moduleid},0,0, Dd('thumb2').value, true, 'thumb2');" class="t">[Upload]</a>&nbsp;&nbsp;<a href="javascript:void(0);" onclick="_preview(Dd('thumb2').value);" class="t">[Preview]</a>&nbsp;&nbsp;<a href="javascript:void(0);" onclick="Dd('thumb2').value='';" class="t">[Delete]</a></td>
</tr>
<tr>
<td class="tl">Certification Description</td>
<td class="tr lh18">
Please upload a company valid documents (business license or organization code certificate, etc.) electronic version of the website in order to verify the certification<br/>
The company name on the document must be consistent with the complete name of the company<br/>
At least need to upload a maximum of three can be uploaded
</td>
</tr>
</tbody>
<tr>
<td class="tl">&nbsp;</td>
<td class="tr" height="30"><input type="submit" name="submit" value=" Determined " class="btn"/>&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" value=" Back " class="btn" onclick="history.back(-1);"/></td>
</tr>
</table>
</form>
{load('clear.js')}
{if $MOD[vfax]}
<br/>
<table cellpadding="10" cellspacing="1" class="tb">
<tr>
<td class="tl">Fax Certification</td>
<td class="tr">
You can fax valid documents to {$MOD[vfax]} Authentication, the copy must be marked Username
</td>
</tr>
</table>
{/if}
<script type="text/javascript">
function check() {
	if(Dd('company').value.length < 2) {
		Dmsg('Please fill in company name', 'company');
		return false;
	}
	if(Dd('thumb').value.length < 15) {
		Dmsg('Please upload documents, pictures', 'thumb');
		return false;
	}
	return true;
}
</script>
{elseif $action == 'vcompany'}
<div class="menu">
<table cellpadding="0" cellspacing="0">
<tr>
<td class="tab_on" id="Tab0"><a href="?action={$action}"><span>Certification</span></a></td>
</tr>
</table>
</div>
<table cellpadding="10" cellspacing="1" class="tb">
<tr>
<td class="tl">Company name</td>
<td class="tr f_b">{$user[company]}</td>
</tr>
{if $user[vcompany] || $v[status] == 3}
<tr>
<td class="tl">Certification status</td>
<td class="tr f_green">Certified</td>
</tr>
{else}
<tr>
<td class="tl">Certification status</td>
<td class="tr f_red">Audit</td>
</tr>
{/if}
</table>
{elseif $action == 'bank'}
<div class="menu">
<table cellpadding="0" cellspacing="0">
<tr>
<td class="tab_on" id="Tab0"><a href="?action={$action}"><span>Bank account verification</span></a></td>
<td class="tab_nav">&nbsp;</td>
<td class="tab" id="Tab1"><a href="cash.php?action=setting"><span>Bank account settings</span></a></td>
</tr>
</table>
</div>
<table cellpadding="10" cellspacing="1" class="tb">
<tr>
<td class="tl">Payment method</td>
<td class="tr">{if $user[bank]}{$user[bank]}{else}Not set{/if}</td>
</tr>
<tr>
<td class="tl">Accounts receivable</td>
<td class="tr">{if $user[account]}{$user[account]}{else}Not set{/if}</td>
</tr>
<tr>
<td class="tl">Payee</td>
<td class="tr">{$user[truename]}</td>
</tr>
{if $user[vbank]}
<tr>
<td class="tl">Certification status</td>
<td class="tr f_green">Certified</td>
</tr>
{else}
<tr>
<td class="tl">Certification status</td>
<td class="tr f_gray">Not certified</td>
</tr>
<tr>
<td class="tl">Certification Description</td>
<td class="tr f_red">Bank account withdrawals after the application, certified by the website</td>
</tr>
{/if}
</table>
{/if}
{template 'footer',$module}